feat: blocks#3
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces a comprehensive registry system for form-related React components, refactors block management to use a metadata-driven approach, and adds several new UI primitives. It restructures routing for preview and block listing, enhances code organization with new schemas and scripts, and improves the developer and user experience with new scripts, UI components, and styling conventions. Changes
Sequence Diagram(s)Block Registry Update and ConsumptionsequenceDiagram
participant Dev as Developer
participant Script as blocks.ts Script
participant FS as File System
participant Registry as registry.json
participant App as Application
Dev->>Script: Runs or modifies block files
Script->>FS: Reads .tsx and .json files in blocks directory
Script->>Script: Validates metadata with schema
Script->>Registry: Updates registry.json with new/updated items
App->>Registry: Loads registry.json at runtime
App->>App: Filters, validates, and displays block previews/routes
Block Preview Rendering FlowsequenceDiagram
participant User as User
participant App as App UI
participant Registry as registry.json
User->>App: Navigates to /blocks or /preview/$name
App->>Registry: Loads registry items
App->>App: Filters and selects block by name
App->>App: Renders BlockPreview with code/preview
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (35)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Deploying shadcn-tanstack-form with
|
| Latest commit: |
ad48747
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4fe743b7.shadcn-tanstack-form.pages.dev |
| Branch Preview URL: | https://feat-blocks.shadcn-tanstack-form.pages.dev |
✅ Deploy Preview for shadcn-tanstack-form ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
1416dec to
0908187
Compare
Summary by CodeRabbit
New Features
Improvements
Chores
Style